package com.seven.utils;

import com.seven.model.User;

/**
 * @Title: UserThreadLocalUtil
 * @Description: TODO
 * @Author 谢伟锟
 * @Date 2023/12/27 17:42
 * @Version 1.0
 */
public class UserThreadLocalUtil {
    private static final ThreadLocal<User> LOCAL = new ThreadLocal<>();
    public static void put(User user) {
        LOCAL.set(user);
    }
    public static User get() {
        return LOCAL.get();
    }
    public static void remove() {
        LOCAL.remove();
    }
}
